// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_acl
// * CreateDate    : 2014-06-05 18:29:54
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:54
// * LastChanger   : 2014-06-05 18:29:54
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmAclEntity : EntityBase
    {
        public HmAclTable TableSchema
        {
            get
            {
                return HmAclTable.Current;
            }
		}
		
		public HmAclEntity()
        {

        }
		
		public HmAclEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Aclid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclid"]));
			this.Aclsharefolderid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclsharefolderid"]));
			this.Aclpermissiontype = Convert.ToByte(CommonFunctions.ToObject(dr["aclpermissiontype"]));
			this.Aclpermissiongroupid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclpermissiongroupid"]));
			this.Aclpermissionaccountid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclpermissionaccountid"]));
			this.Aclvalue = Convert.ToInt64(CommonFunctions.ToObject(dr["aclvalue"]));
        }
		
		public HmAclEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Aclid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclid"]));
			this.Aclsharefolderid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclsharefolderid"]));
			this.Aclpermissiontype = Convert.ToByte(CommonFunctions.ToObject(dr["aclpermissiontype"]));
			this.Aclpermissiongroupid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclpermissiongroupid"]));
			this.Aclpermissionaccountid = Convert.ToInt64(CommonFunctions.ToObject(dr["aclpermissionaccountid"]));
			this.Aclvalue = Convert.ToInt64(CommonFunctions.ToObject(dr["aclvalue"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmAclTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public long Aclid
        {
            get { return Convert.ToInt64(GetData(HmAclTable.C_aclid)); }
            set { SetData(HmAclTable.C_aclid, value); }
        }
		
        [DataMember]
        public long Aclsharefolderid
        {
            get { return Convert.ToInt64(GetData(HmAclTable.C_aclsharefolderid)); }
            set { SetData(HmAclTable.C_aclsharefolderid, value); }
        }
		
        [DataMember]
        public byte Aclpermissiontype
        {
            get { return Convert.ToByte(GetData(HmAclTable.C_aclpermissiontype)); }
            set { SetData(HmAclTable.C_aclpermissiontype, value); }
        }
		
        [DataMember]
        public long Aclpermissiongroupid
        {
            get { return Convert.ToInt64(GetData(HmAclTable.C_aclpermissiongroupid)); }
            set { SetData(HmAclTable.C_aclpermissiongroupid, value); }
        }
		
        [DataMember]
        public long Aclpermissionaccountid
        {
            get { return Convert.ToInt64(GetData(HmAclTable.C_aclpermissionaccountid)); }
            set { SetData(HmAclTable.C_aclpermissionaccountid, value); }
        }
		
        [DataMember]
        public long Aclvalue
        {
            get { return Convert.ToInt64(GetData(HmAclTable.C_aclvalue)); }
            set { SetData(HmAclTable.C_aclvalue, value); }
        }
		
		#endregion
	}
	
	
}	

